﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace GreyGate.Utils
{
    class UtilityVariables
    {
        GraphicsDeviceManager graphics;

        public static int labyrinthSize = 4;
        public static float scale = 0.25f;
        public static int roomSize = 2190;
        public static float stepSizeRooms = 547.5f;
        
        public static Matrix fieldOfView;
        public static float  aspectRatio;

        public UtilityVariables(GraphicsDeviceManager graphics)
        {
            this.graphics = graphics;
            float viewAngle;

            aspectRatio = (float)graphics.GraphicsDevice.Viewport.Width /
                          ( 2 * (float)graphics.GraphicsDevice.Viewport.Height );
            viewAngle = MathHelper.ToRadians(120f);


            fieldOfView = Matrix.CreatePerspectiveFieldOfView( viewAngle,
                                                               aspectRatio,
                                                               0.1f,
                                                               //stepSizeRooms * 1.5f
                                                               100000000
                                                               );
        }
    }
}
